package com.sg.dto.integration.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffUsersUnionDto
 * @使用场景
 */
@Data
public class BffUsersUnionDto implements Serializable {

    /**
     * 联盟应用对象类型 XSZ:新数质 WX:微信 QQ:QQ XL:新浪
     */
    @ApiModelProperty("联盟应用对象类型")
    private String unionAppObjectType;

    /**
     * 联盟应用用户ID
     */
    @ApiModelProperty("联盟应用用户ID")
    private String unionAppObjectId;

    /**
     * 联盟应用用户名
     */
    @ApiModelProperty("联盟应用用户名")
    private String unionAppObjectName;

    /**
     * 激活时间
     */
    @ApiModelProperty("激活时间")
    private Date activetionTime;
    /**
     * 应用名称
     */
    @ApiModelProperty("应用名称")
    private String appName;

    /**
     * 应用框架logo图片
     */
    @ApiModelProperty("应用框架logo图片")
    private String appLogo;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffUsersUnionDto that = (BffUsersUnionDto) o;
        return unionAppObjectType == that.unionAppObjectType && unionAppObjectId == that.unionAppObjectId && unionAppObjectName == that.unionAppObjectName && activetionTime == that.activetionTime && appName == that.appName && appLogo == that.appLogo;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), unionAppObjectType, unionAppObjectId, unionAppObjectName, activetionTime, appName, appLogo);
    }


}
   